﻿<UserControl x:Class="RaisingStudio.SmallProgram.Web.Silverlight.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
    <Viewbox>
        <StackPanel x:Name="root" Margin="8" Orientation="Horizontal">
            <StackPanel Orientation="Vertical">
                <StackPanel x:Name="windowHost" />
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition />
                    </Grid.ColumnDefinitions>
                    <StackPanel Orientation="Horizontal">
                        <Image Source="Resources/AppIcon_16.png" />
                        <HyperlinkButton Content="Get Small Program and start making your own games." VerticalAlignment="Bottom" Click="OnClickSmallProgram"
                             Foreground="#444444" FontSize="14" />
                    </StackPanel>
                    <HyperlinkButton Content="Program Details" VerticalAlignment="Bottom" HorizontalAlignment="Right"
                           Foreground="#444444" Click="OnClickProgramDetails" FontSize="14" Grid.Column="1" />
                </Grid>
            </StackPanel>

            <StackPanel Orientation="Vertical" Visibility="Collapsed">
                <TextBox x:Name="programText" FontFamily="Consolas" FontSize="12"
                 AcceptsReturn="True" Margin="0,4,0,0" Width="360" Height="500"
                 HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"/>
                <Button Width="80" Content="Run" Click="OnRun" HorizontalAlignment="Left" />
            </StackPanel>
        </StackPanel>
    </Viewbox>
</UserControl>
